<?php
    ob_start();
    require_once ('lib/inc_base.php');
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Campeonato de futbol</title>

    <link type="text/css" href="styles/master.css" rel="stylesheet" />
    <link type="text/css" href="styles/ui-lightness/jquery-ui-1.8.custom.css" rel="stylesheet" />

    <script type="text/javascript" src="scripts/jquery-1.4.2.js"></script>
    <script type="text/javascript" src="scripts/jquery.ui.core.js"></script>
    <script type="text/javascript" src="scripts/jquery.ui.datepicker.js"></script>
    <script type="text/javascript" src="scripts/master.js"></script>
</head>

<body>

    <div id="root">

        <div id="menu">
            
            <?php include ("inc_menu.php"); ?>

            <?php include ("inc_menuadmin.php"); ?>

            <?php include ("inc_menucuenta.php"); ?>
        </div>

        <div id="content">
            <?php

                $action = Form::get("action");

                if ($action == "apostar")
                    include ("apostar.php");

                else if ($action == "cargar")
                    include ("cargar.php");

                else if ($action == "historialapuestas")
                    include ("historialapuestas.php");

                else if ($action == "login")
                    include ("login.php");

                else if ($action == "logout")
                    include ("logout.php");

                else if ($action == "partidos")
                    include ("partidos.php");

                else if ($action == "estadios")
                    include ("estadios.php");

                else if ($action == "equipos")
                    include ("equipos.php");

                else if ($action == "detallepartido")
                    include ("detallepartido.php");

                else if ($action == "detalleequipo")
                    include ("detalleequipo.php");

                else if ($action == "detalleusuario")
                    include ("detalleusuario.php");

                else if ($action == "detallejugador")
                    include ("detallejugador.php");

                else if ($action == "buscadorequipos")
                    include ("buscadorequipos.php");

                else if ($action == "buscadorestadios")
                    include ("buscadorestadios.php");

                else if ($action == "buscadorpartidos")
                    include ("buscadorpartidos.php");

                else if ($action == "buscadorjugadores")
                    include ("buscadorjugadores.php");

                else if ($action == "crearcuenta")
                    include ("crearcuenta.php");

                else if ($action == "crearestadio")
                    include ("crearestadio.php");

                else if ($action == "crearequipo")
                    include ("crearequipo.php");

                else if ($action == "crearjugador")
                    include ("crearjugador.php");

                else if ($action == "creargol")
                    include ("creargol.php");

                else if ($action == "crearpartido")
                    include ("crearpartido.php");

                else if ($action == "reasignacion")
                    include ("reasignacion.php");

                else if ($action == "modificarestado")
                    include ("modificarestado.php");

                else if ($action == "desactivarcuenta")
                    include ("desactivarcuenta.php");

                else if ($action == "usuarios")
                    include ("usuarios.php");

                else if ($action == "tablaposiciones")
                    include ("tablaposiciones.php");

                else if ($action == "jugadoresextranjeros")
                    include ("jugadoresextranjeros.php");

                else if ($action == "acertadas6meses")
                    include ("acertadas6meses.php");

                else
                    include ("home.php");

            ?>
        </div>

    </div>

    <?php ob_flush(); ?>

</body>

</html>